home *** CD-ROM | disk | FTP | other *** search
- Path: fontainebleau.ensmp.fr!idefix!salignac
- From: salignac@cig.ensmp.fr
- Newsgroups: comp.lang.c++,comp.lang.fortran
- Subject: coupling c++ code with fortran
- Date: 3 Jan 1996 13:38:33 GMT
- Organization: Ecole Nationale Superieure des Mines de Paris
- Sender: salignac@idefix (Anne Lise SALIGNAC <salignac@cig.ensmp.fr>)
- Distribution: world
- Message-ID: <4ce0sp$ddv@fontainebleau.ensmp.fr>
- NNTP-Posting-Host: idefix
-
- Hello !
-
- I'm trying to call a C++ subroutine in a Fortran 77 code.
- The compilation fails while linking: it seems impossible
- for the fortran compiler/linker to recognize the C++ function.
- In plain C, the problem is easily solved by adding underscores
- at the start of the C-function name, but this is clearly
- different for C++....
-
- Does anyone know which syntax is recognized by both compilers?
- Are there examples available ?
-
- I currently use the gnu-C++ compiler (v.2.7.0) and the standard
- Unix f77 compiler. Trials with the gnu-f77 compiler failed
- for the same reason.
- Answers by e-mail would be most appreciated.
-
- Best wishes.
-
- AnneLise. (salignac@cig.ensmp.fr)
-